<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="rad" uri="http://amc.af.mil/radtaglibrary" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<%@ taglib prefix="display" uri="http://displaytag.sf.net" %>
<%@ taglib prefix="portal" uri="http://amc.af.mil/portal-el" %>
<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html-el" %>
<html>
<head>
    <title>View DRMO Package</title>
</head>

<body>
<rad:useBean id="drmoPackageViewHelper"/>

<div id="portal-left-bar">
    <jsp:include page="../navigation/navigationMenu.jsp"/>
</div>

<div id="portal-content">
    <portal:box title="DRMO Package Detail" style="width:800px">
        <portal:subSection title="Details">
            <p>
            <table>
                <tr>
                    <td width="100px">DTID: </td>
                    <td><c:out value="${drmoPackageViewHelper.package.dtid}"/></td>
                </tr>
                <tr>
                    <td>Turnin Date:</td>
                    <td><fmt:formatDate value="${drmoPackageViewHelper.package.turninDate}" type="date"
                                        pattern="d-MMM-y"/></td>
                </tr>
                <tr>
                    <td>Total Value:</td>
                    <td><fmt:formatNumber value="${drmoPackageViewHelper.package.packageValue}"
                                          type="currency"/></td>
                </tr>
            </table>
            </p>
            <p>&nbsp;</p>
        </portal:subSection>
        <portal:subSection title="Identified Items">
            <display:table name="drmoPackageViewHelper.package.identifiedItems"
                           style="width: 100%"
                           defaultsort="1"
                           id="item">
                <display:column title="Serial">
                    <html:link href="viewEquipmentItem.do?itemId=${item.id}">
                        <c:out value="${item.serial}"/>
                    </html:link>
                </display:column>
                <display:column title="Manufacturer">
                    <c:out value="${item.itemModel.manufacturer.name}"/>
                </display:column>
                <display:column title="Model">
                    <c:out value="${item.itemModel.name}"/>
                </display:column>
                <display:column title="Description">
                    <c:out value="${item.description}"/>
                </display:column>

            </display:table>
        </portal:subSection>
    </portal:box>
</div>
</body>
</html>